<%report = @report_response.report%>
		
<%= render :partial => 'back_button' %>

<%= render :partial => 'print_report' %>

<%= render :partial => 'browse_reports', :locals => {:report_response => @report_response} %>

<div class="reference"><span><%= _('References:') %></span> <%= _('Yes:') %> <img src="/images/circ_y.gif" /> &nbsp;&nbsp;<%= _('No:') %> <img src="/images/circ_n.gif" /></div>
  
<div id="maintable">
	<table class="xbtable_finished" cellpadding="0" cellspacing="0">
    	<col id="col1"><col id="col2"><col id="col3">
		<% report.groupings.each do |group| %>
			<%= render :partial => "xb_view_headers" %>
		
	    	<tr class="trstrategy">
		        <td class="col1"><%=group.text%></td>
		        <td class="col2"></td>
		        <td class="col3"></td>
	        </tr>
		
			<% group.questions_for_role(@report_response.owner_role).each do |question| %>
				<% if question.is_yes_no %>
	        		<tr>
	            		<td class="col1"><%= question.code%>	<%= _(question.text_for( @report_response.owner_role ))%></td>
						<% if @report_response.answer(question).is_yes%>
			            	<td class="col2"><img src="/images/circ_y.gif" /></td>
							<td class="col3"><%=@report_response.answer(question).html_value_text%></td>
						<% else %>
							<td class="col2"><img src="/images/circ_n.gif" /></td>
							<td class="col3 whynot"><%=@report_response.answer(question).html_value_text%></td>
						<% end %>
            		</tr>
				<% else %>
					<tr>
						<td class="col1"><%= _(question.text_for( @report_response.owner_role ))%></td>
						<td class="col2"></td>
						<td class="col3"><%=@report_response.answer(question).html_value_text%></td>
					</tr>
				<% end %>
			<% end %>
		<% end %>
	</table>
</div><!--/maintable-->

<br/>
	
<div id = "HistoryLog">
	<%= render :partial => 'history_log', :object => @report_response %>
</div>
    
